Greetings,
I am wanting to write the current position of an axis to a file. To start with I am trying to open the file and save "Hello World". When I try to do so it saves to the console rather than the file.
Jog(1,-15000); // jog slowly negative
while (ReadBit(1026)) ; // loop until IO bit goes low
Jog(1,0); // stop
FILE *f=fopen("Z:\\Automation Department\\LengthBH.txt","wt");
printf("Hello world\n");
fclose(f);
I am not sure how to get it to write to file, any idea what I am missing?
Once this is working I would really like to write out the current position for axis 1. Any ideas on how to do this?
Thanks!
Scott